// 持久化缓存
export default store => {
	console.log('store初始化了');
	if (localStorage.ivcsAdmin) {
		store.replaceState(JSON.parse(localStorage.ivcsAdmin));
	}
	store.subscribe((mutation, ivcsAdmin) => {
		console.log('提交了mutation');
		localStorage.ivcsAdmin = JSON.stringify(ivcsAdmin);
	});
};
